DingiMap Docs iOS SDK Reference

DingiMap Reference Style Primitives Reference
  • Maps
    • DingiAccountManager
    • DingiMapCamera
    • DingiMapView
    • DingiMapViewDelegate
    • DingiMapSnapshot
    • DingiMapSnapshotOptions
    • DingiMapSnapshotter
    • DingiUserTrackingMode
  • Primitive Shapes
    • DingiAnnotation
    • DingiOverlay
    • DingiShape
    • DingiMultiPoint
    • DingiPointAnnotation
    • DingiPointCollection
    • DingiPolygon
    • DingiPolyline
    • DingiMultiPolygon
    • DingiMultiPolyline
    • DingiShapeCollection
  • Annotations
    • DingiAnnotationImage
    • DingiAnnotationView
    • DingiUserLocation
    • DingiUserLocationAnnotationView
  • User Interaction
    • DingiCalloutView
    • DingiCalloutViewDelegate
  • Location Updates
    • DingiLocationManager
    • DingiLocationManagerDelegate
  • Styling the Map
    • DingiStyle
    • DingiLight
  • Style Primitives
    • DingiFeature
    • DingiPointFeature
    • DingiPolygonFeature
    • DingiPolylineFeature
    • DingiMultiPolygonFeature
    • DingiMultiPolylineFeature
    • DingiPointCollectionFeature
    • DingiShapeCollectionFeature
  • Style Content
    • DingiSource
    • DingiShapeSource
    • DingiComputedShapeSource
    • DingiTileSource
    • DingiRasterTileSource
    • DingiRasterDEMSource
    • DingiVectorTileSource
    • DingiImageSource
  • Style Layers
    • DingiStyleLayer
    • DingiForegroundStyleLayer
    • DingiBackgroundStyleLayer
    • DingiRasterStyleLayer
    • DingiVectorStyleLayer
    • DingiCircleStyleLayer
    • DingiFillStyleLayer
    • DingiFillExtrusionStyleLayer
    • DingiHeatmapStyleLayer
    • DingiHillshadeStyleLayer
    • DingiLineStyleLayer
    • DingiSymbolStyleLayer
  • Geometry
    • DingiCoordinateBounds
    • DingiCoordinateBoundsEqualToCoordinateBounds
    • DingiCoordinateBoundsGetCoordinateSpan
    • DingiCoordinateBoundsIntersectsCoordinateBounds
    • DingiCoordinateBoundsIsEmpty
    • DingiCoordinateBoundsMake
    • DingiCoordinateBoundsOffset
    • DingiCoordinateInCoordinateBounds
    • DingiCoordinateQuad
    • DingiCoordinateQuadMake
    • DingiCoordinateQuadFromCoordinateBounds
    • DingiCoordinateSpan
    • DingiCoordinateSpanEqualToCoordinateSpan
    • DingiCoordinateSpanMake
    • DingiCoordinateSpanZero
    • DingiDegreesFromRadians
    • DingiRadiansFromDegrees
    • DingiStringFromCoordinateBounds
    • DingiStringFromCoordinateQuad
  • Formatters
    • DingiClockDirectionFormatter
    • DingiCompassDirectionFormatter
    • DingiCoordinateFormatter
    • DingiDistanceFormatter
  • Other Guides
    • For Style Authors
    • Gesture Recognizers
    • Info.plist Keys
    • Migrating to Expressions
    • Predicates and Expressions
    • Tile URL Templates
    • Working with GeoJSON Data
  • Other Categories
    • NSExpression(MGLAdditions)
    • NSValue(DingiCircleStyleLayerAdditions)
    • NSValue(DingiFillExtrusionStyleLayerAdditions)
    • NSValue(DingiFillStyleLayerAdditions)
    • NSValue(DingiHillshadeStyleLayerAdditions)
    • NSValue(DingiLineStyleLayerAdditions)
    • NSValue(DingiRasterStyleLayerAdditions)
    • NSValue(DingiSymbolStyleLayerAdditions)
    • NSValue(MGLAdditions)
  • Other Classes
    • DingiAttributionInfo
    • DingiLoggingConfiguration
    • DingiOfflinePack
    • DingiOfflineStorage
    • DingiShapeOfflineRegion
    • DingiTilePyramidOfflineRegion
  • Other Constants
    • DingiErrorDomain
    • DingiExpressionInterpolationModeCubicBezier
    • DingiExpressionInterpolationModeExponential
    • DingiExpressionInterpolationModeLinear
    • DingiMapVersionNumber
    • DingiMapVersionString
    • DingiMapViewDecelerationRateFast
    • DingiMapViewDecelerationRateImmediate
    • DingiMapViewDecelerationRateNormal
    • DingiMapViewPreferredFramesPerSecondDefault
    • DingiMapViewPreferredFramesPerSecondLowPower
    • DingiMapViewPreferredFramesPerSecondMaximum
    • DingiOfflinePackErrorNotification
    • DingiOfflinePackMaximumDingiTilesReachedNotification
    • DingiOfflinePackProgressChangedNotification
    • DingiOfflinePackUserInfoKeyError
    • DingiOfflinePackUserInfoKeyMaximumCount
    • DingiOfflinePackUserInfoKeyProgress
    • DingiOfflinePackUserInfoKeyState
    • DingiShapeSourceOptionBuffer
    • DingiShapeSourceOptionClipsCoordinates
    • DingiShapeSourceOptionClusterRadius
    • DingiShapeSourceOptionClustered
    • DingiShapeSourceOptionLineDistanceMetrics
    • DingiShapeSourceOptionMaximumZoomLevel
    • DingiShapeSourceOptionMaximumZoomLevelForClustering
    • DingiShapeSourceOptionMinimumZoomLevel
    • DingiShapeSourceOptionSimplificationTolerance
    • DingiShapeSourceOptionWrapsCoordinates
    • DingiStyleDefaultVersion
    • DingiTileSourceOptionAttributionHTMLString
    • DingiTileSourceOptionAttributionInfos
    • DingiTileSourceOptionCoordinateBounds
    • DingiTileSourceOptionDEMEncoding
    • DingiTileSourceOptionMaximumZoomLevel
    • DingiTileSourceOptionMinimumZoomLevel
    • DingiTileSourceOptionTileCoordinateSystem
    • DingiTileSourceOptionTileSize
  • Other Enumerations
    • DingiAnnotationVerticalAlignment
    • DingiAnnotationViewDragState
    • DingiAttributionInfoStyle
    • DingiCirclePitchAlignment
    • DingiCircleScaleAlignment
    • DingiCircleTranslationAnchor
    • DingiDEMEncoding
    • DingiErrorCode
    • DingiFillExtrusionTranslationAnchor
    • DingiFillTranslationAnchor
    • DingiHillshadeIlluminationAnchor
    • DingiIconAnchor
    • DingiIconPitchAlignment
    • DingiIconRotationAlignment
    • DingiIconTextFit
    • DingiIconTranslationAnchor
    • DingiLightAnchor
    • DingiLineCap
    • DingiLineJoin
    • DingiLineTranslationAnchor
    • DingiLoggingLevel
    • DingiMapDebugMaskOptions
    • DingiOfflinePackState
    • DingiRasterResamplingMode
    • DingiResourceKind
    • DingiSymbolPlacement
    • DingiSymbolZOrder
    • DingiTextAnchor
    • DingiTextJustification
    • DingiTextPitchAlignment
    • DingiTextRotationAlignment
    • DingiTextTransform
    • DingiTextTranslationAnchor
    • DingiTileCoordinateSystem
  • Other Protocols
    • DingiComputedShapeSourceDataSource
    • DingiOfflineRegion
    • DingiOfflineStorageDelegate
  • Other Type Definitions
    • DingiBatchedOfflinePackAdditionCompletionHandler
    • DingiLoggingBlockHandler
    • DingiMapSnapshotCompletionHandler
    • DingiMapViewDecelerationRate
    • DingiMapViewPreferredFramesPerSecond
    • DingiOfflinePackAdditionCompletionHandler
    • DingiOfflinePackRemovalCompletionHandler
    • DingiOfflinePackUserInfoKey
    • DingiShapeSourceOption
    • DingiTileSourceOption
  • Other Functions
    • DingiAltitudeForZoomLevel
    • DingiMapPointForCoordinate
    • DingiMapPointMake
    • DingiSphericalPositionMake
    • DingiTransitionMake
    • DingiZoomLevelForAltitude
  • Other Structures
    • DingiOfflinePackProgress
    • DingiSphericalPosition
    • DingiTransition

Style Primitives

  • DingiFeature

    The DingiFeature protocol is used to provide details about geographic features contained in an DingiShapeSource or DingiVectorTileSource object. Each concrete subclass of MGLShape in turn has a subclass that conforms to this protocol. A feature object associates a shape with an optional identifier and attributes.

    You can add custom data to display on the map by creating feature objects and adding them to an DingiShapeSource using the -[DingiShapeSource initWithIdentifier:shape:options:] method or DingiShapeSource.shape property.

    In addition to adding data to the map, you can also extract data from the map: -[DingiMapView visibleFeaturesAtPoint:] and related methods return feature objects that correspond to features in the source. This enables you to inspect the properties of features in vector tiles loaded by DingiVectorTileSource objects. You also reuse these feature objects as overlay annotations.

    While it is possible to add DingiFeature-conforming objects to the map as annotations using -[DingiMapView addAnnotations:] and related methods, doing so has trade-offs:

    • Features added as annotations will not have identifier or attributes properties when used with feature querying.

    • Features added as annotations become interactive. Taps and selection can be handled in -[DingiMapViewDelegate mapView:didSelectAnnotation:].

    See more

    Declaration

    Objective-C

    @protocol DingiFeature <DingiAnnotation>

    Swift

    protocol DingiFeature : DingiAnnotation
  • DingiPointFeature

    An DingiPointFeature object associates a point shape with an optional identifier and attributes.

    Declaration

    Objective-C

    
    @interface DingiPointFeature : DingiPointAnnotation <DingiFeature>

    Swift

    class DingiPointFeature : DingiPointAnnotation, DingiFeature
  • DingiPolygonFeature

    An DingiPolygonFeature object associates a polygon shape with an optional identifier and attributes.

    Declaration

    Objective-C

    
    @interface DingiPolygonFeature : DingiPolygon <DingiFeature>

    Swift

    class DingiPolygonFeature : DingiPolygon, DingiFeature
  • DingiPolylineFeature

    An DingiPolylineFeature object associates a polyline shape with an optional identifier and attributes.

    A polyline feature is known as a LineString feature in GeoJSON.

    Declaration

    Objective-C

    
    @interface DingiPolylineFeature : DingiPolyline <DingiFeature>

    Swift

    class DingiPolylineFeature : DingiPolyline, DingiFeature
  • DingiMultiPolygonFeature

    An DingiMultiPolygonFeature object associates a multipolygon shape with an optional identifier and attributes.

    Declaration

    Objective-C

    
    @interface DingiMultiPolygonFeature : DingiMultiPolygon <DingiFeature>

    Swift

    class DingiMultiPolygonFeature : DingiMultiPolygon, DingiFeature
  • DingiMultiPolylineFeature

    An DingiMultiPolylineFeature object associates a multipolyline shape with an optional identifier and attributes.

    A multipolyline feature is known as a MultiLineString feature in GeoJSON.

    Declaration

    Objective-C

    
    @interface DingiMultiPolylineFeature : DingiMultiPolyline <DingiFeature>

    Swift

    class DingiMultiPolylineFeature : DingiMultiPolyline, DingiFeature
  • DingiPointCollectionFeature

    An DingiPointCollectionFeature object associates a point collection with an optional identifier and attributes.

    A point collection feature is known as a MultiPoint feature in GeoJSON.

    Declaration

    Objective-C

    
    @interface DingiPointCollectionFeature : DingiPointCollection <DingiFeature>

    Swift

    class DingiPointCollectionFeature : DingiPointCollection, DingiFeature
  • DingiShapeCollectionFeature

    An DingiShapeCollectionFeature object associates a shape collection with an optional identifier and attributes.

    DingiShapeCollectionFeature is most commonly used to add multiple shapes to a single DingiShapeSource. Configure the appearance of an DingiSource’s shape collection collectively using an DingiSymbolStyleLayer object, or use multiple instances of DingiCircleStyleLayer, DingiFillStyleLayer, and DingiLineStyleLayer to configure the appearance of each kind of shape inside the collection.

    A shape collection feature is known as a feature collection in GeoJSON.

    Declaration

    Objective-C

    
    @interface DingiShapeCollectionFeature : DingiShapeCollection <DingiFeature>

    Swift

    class DingiShapeCollectionFeature : DingiShapeCollection, DingiFeature

© 2014–2018 Dingi. See license for more details.

Generated by jazzy ♪♫ v0.9.4, a Realm project.